﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace SerbinAV.MobileSales.Sales.Entities
{
    public class BuyPointScheduler
    {
        
        private Dictionary<Day, bool> Days;

        public BuyPointScheduler()
        {
            Days = new Dictionary<Day, bool>(7);
            Day d;
            for (d =Day.Monday; d <= Day.Sunday; d++)
            {
                Days.Add(d,false);
            }
        }

        public BuyPoint BuyPoint { get; set; }

        public bool Sunday
        {
            get
            {
                return Days[Day.Sunday];
            }
            set
            {
                Days[Day.Sunday] = value;
            }
        }

        public bool Monday
        {
            get
            {
                return Days[Day.Monday];
            }
            set
            {
                Days[Day.Monday] = value;
            }
        }

        public bool Tuesday
        {
            get
            {
                return Days[Day.Tuesday];
            }
            set
            {
                Days[Day.Tuesday] = value;
            }
        }

        public bool Wednesday
        {
            get
            {
                return Days[Day.Wednesday];
            }
            set
            {
                Days[Day.Wednesday] = value;
            }
        }

        public bool Thursday
        {
            get
            {
                return Days[Day.Thursday];
            }
            set
            {
                Days[Day.Thursday] = value;
            }
        }

        public bool Friday
        {
            get
            {
                return Days[Day.Friday];
            }
            set
            {
                Days[Day.Friday] = value;
            }
        }

        public bool Saturday
        {
            get
            {
                return Days[Day.Saturday];
            }
            set
            {
                Days[Day.Saturday] = value;
            }
        }
    }
}
